<#setting number_format="#">
<#if detail?? && detail.order??>
<style>
    .info {
        font-weight: bolder;
        color: #fff;
        background-color: #0d638f;
    }
</style>
    <#assign order=detail.order />
<div>
    <div class="row" style="padding:12px ">
        <span style="float: right;cursor: pointer" onclick="Order.Detail.close()"><i
                class="fa fa-close"></i> close</span>
    </div>
    <div class="row">
        <div class="col-md-12">
            <h4 class="title">订单详情</h4>
            <table class="table table-striped table-bordered">
                <tbody>
                <tr>
                    <td colspan="4" class="info">- 订单信息 -</td>
                </tr>
                <tr>
                    <th>订单号</th>
                    <td>${order.orderNo}</td>
                    <th>订单创建时间</th>
                    <td><#if order.createTime??>${order.createTime?string('yyyy-MM-dd HH:mm')}</#if></td>
                </tr>
                <tr>
                    <th>订单联系人</th>
                    <td>${order.orderCctName!''}</td>
                    <th>订单联系人手机号码</th>
                    <td>${order.orderCctMobile!''}</td>
                </tr>
                <tr>
                    <th>服务类目</th>
                    <td>${order.topCatName!''}</td>
                    <th>服务类型</th>
                    <td>${order.svrName!''}</td>
                </tr>
                <tr>
                    <th>状态</th>
                    <td colspan="3">${(order.status=='0')?string('已取消','正常')}</td>
                </tr>
                <tr>
                    <td colspan="4" class="info">- 客户信息 -</td>
                </tr>
                <tr>
                    <th>客户姓名</th>
                    <td>${order.cstName}</td>
                    <th>客户手机号码</th>
                    <td>${order.cstMobile}</td>
                </tr>
                <tr>
                    <th>客户期望收货时间</th>
                    <td>${order.cstExpectDeliverDate!''}</td>
                    <th>客户地址</th>
                    <td>${order.cstAddrProv!''}${order.cstAddrCity!''}${order.cstAddrArea!''}${order.cstAddrDist!''}${order.cstAddrDetail!''}</td>
                </tr>
                <tr>
                    <th>楼层</th>
                    <td>${order.bldFloor}楼</td>
                    <th>是否有电梯</th>
                    <td>${(order.bldLift=='1')?string('有','无')}</td>
                </tr>
                <tr>
                    <th>是否核销</th>
                    <td>
                        <#if order.verify=='0'>
                            否
                        <#elseif order.verify=='1'>
                            喵师傅核销
                        <#else >
                            汪师傅核销
                        </#if>
                    </td>
                    <th>核销码</th>
                    <td>${order.verifyCode!''}</td>
                </tr>
                <tr>
                    <td colspan="4" class="info">- 物流信息 -</td>
                </tr>
                <tr>
                    <th>物流公司</th>
                    <td>${order.exprComName!''}</td>
                    <th>货运物流单号</th>
                    <td>${order.exprOrderNo}</td>
                </tr>
                <tr>
                    <th>物流网点</th>
                    <td colspan="3">${order.pkAddr!''}</td>
                </tr>
                <tr>
                    <th>提货联系人</th>
                    <td>${order.pkCctName}</td>
                    <th>提货联系方式</th>
                    <td>${order.pkCctMobile}</td>
                </tr>
                <tr>
                    <th>物流状态</th>
                    <td>${(order.exprStatus=='1')?string('已到达','未到达')}</td>
                    <th>预计到货时间</th>
                    <td>${order.estDeliverDate}</td>
                </tr>
                <tr>
                    <th>包裹数量</th>
                    <td>${order.pkgNum}</td>
                    <th>是否代付运费</th>
                    <td >${(order.preFrePay=='1')?string('是','否')}</td>
                </tr>
                <tr>
                    <td colspan="4" class="info">- 特别需求 -</td>
                </tr>
                <tr>
                    <td colspan="4">${order.specialReq!''}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <h4 class="title">货物详情</h4>
    <#if detail.items?? && detail.items?size gt 0>
        <#list detail.items as item>
            <div class="row">
                <div class="col-md-12">
                    <table class="table table-striped table-bordered">
                        <tbody>
                        <tr>
                            <th style="min-width:100px">货物图片：</th>
                            <td><#if item.img?? && item.img!=''><img style="max-width:100px;max-height: 100px"
                                                                     src="${item.img}"/></#if>
                            </td>
                        </tr>
                        <tr>
                            <th>货物分类：</th>
                            <td>${item.subCatName!''}</td>
                        </tr>
                        <tr>
                            <th>货物子分类：</th>
                            <td>${item.leafCatName!''}</td>
                        </tr>
                        <tr>
                            <th>货物型号：</th>
                            <td>${item.model!''}</td>
                        </tr>
                        <tr>
                            <th>货物数量：</th>
                            <td>${item.itemNum}件</td>
                        </tr>
                        <tr>
                            <th>货物体积：</th>
                            <td>${item.length} * ${item.width} * ${item.height}(长 * 宽 * 高)</td>
                        </tr>
                        <tr>
                            <th>货物重量：</th>
                            <td>${item.weight} 千克</td>
                        </tr>
                        <tr>
                            <th>特殊要求：</th>
                            <td>${item.req}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </#list>
    </#if>
</div>

<script>
    function zoom(me) {
        if ($(me).height() == 100) {
            $(me).css({width: "100%", height: "auto"});
        } else {
            $(me).css({width: "100px", height: "100px"});
        }
    }
</script>
<#else >
不存在
</#if>